package com.cy.pj.sys.dao;

import com.cy.pj.common.web.pojo.CheckBox;
import com.cy.pj.sys.pojo.CGBRoles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CGBRolesDao {
    List<CGBRoles> selectRoles(CGBRoles cgbRoles);

    CGBRoles selectById(Integer id);

    int insertRoles(CGBRoles cgbRoles);

    int updateRoles(CGBRoles cgbRoles);

    @Select("select id,rolename from role")
    List<CheckBox> selectCheckRoles();

}
